//
//  SWFeedbackViewController.m
//  ShiWu
//
//  Created by  on 2022/7/29.
//

#import "SWFeedbackViewController.h"

@interface SWFeedbackViewController ()
@property (strong, nonatomic) IBOutlet UITextView *input;

@end

@implementation SWFeedbackViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.input.backgroundColor = [UIColor whiteColor];
    // Do any additional setup after loading the view from its nib.
}
- (IBAction)actionForBtn:(UIButton *)sender {
    if (self.input.text.length < 1) {
        [RLHud startHud:LS(@"内容不能为空") stopTime:1 handle:^{
            
        }];
    }else{
        [RLHud startHud:LS(@"提交中...") stopTime:1 handle:^{
            [RLHud startHud:LS(@"提交成功...") stopTime:1 handle:^{
                [self.navigationController popViewControllerAnimated:YES];
            }];
        }];
    }
}
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [super touchesEnded:touches withEvent:event];
    [self.view endEditing:YES];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
